package com.itheima.project.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.project.basic.BasicPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 * @Description：
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("tab_content_rule_detail")
@ApiModel(value="ContentRuleDetail对象", description="")
public class ContentRuleDetail extends BasicPojo {

    private static final long serialVersionUID = 1L;

    @Builder
    public ContentRuleDetail(Long id,Long baseRuleId,String scene,String ruleDetail,String remark){
        super(id);
        this.baseRuleId=baseRuleId;
        this.scene=scene;
        this.ruleDetail=ruleDetail;
        this.remark=remark;
    }

    @ApiModelProperty(value = "基础规则ID")
    private Long baseRuleId;

    @ApiModelProperty(value = "场景，eg:porn")
    private String scene;

    @ApiModelProperty(value = "规则明细，eg：[{'rule':'10<score<20','score':30}]")
    private String ruleDetail;

    @ApiModelProperty(value = "备注说明")
    private String remark;


}
